package cc.zhaoac.faith.core.demo.model;


import cc.zhaoac.faith.core.boot.annotation.Trim;
import cc.zhaoac.faith.core.mp.base.FaithBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户表(User)表实体类
 *
 * @author zhaoanchi
 * @since 2023-09-18 16:56:58
 */
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("auth_user")
public class User extends FaithBaseEntity {
    //主键
    private Long id;
    //用户名
    private String username;
    //密码=MD5(passwd+salt)
    private String password;
    //盐值
    private String salt;
    //头像
    private String avatar;
    //电话(unique)
    private String phone;
    //邮箱(unique)
    private String email;
    //性别(1男 2女)
    private Integer sex;
    //真实姓名
    @Trim
    private String name;
}

